package org.atovio.blog.mapper;

import org.apache.ibatis.annotations.Select;
import org.atovio.blog.model.pojo.Provenance;

/**
 * @author AtoVio, Winter Yuan
 */
public interface ProvenanceMapper {

    /**
     * 根据id查询
     * @param id id
     * @return Provenance对象
     */
    @Select("select id, name, year from provenance where id = #{id}")
    Provenance selectById(Integer id);
}
